package request

type CreateWithdrawalReq struct {
	Amount        float64 `json:"amount" form:"amount" binding:"required,gt=0"`
	AccountType   int8    `json:"account_type" form:"account_type" binding:"required,min=1,max=3"`
	AccountNumber string  `json:"account_number" form:"account_number" binding:"required"`
	AccountName   string  `json:"account_name" form:"account_name" binding:"required"`
	BankName      string  `json:"bank_name" form:"bank_name"`
	Password      string  `json:"password" form:"password" binding:"required"` // 支付密码
	VerifyCode    string  `json:"verify_code" form:"verify_code"`              // 短信验证码（可选）
}

type AuditWithdrawalReq struct {
	ID      uint64 `json:"id" form:"id" binding:"required"`
	Status  int8   `json:"status" form:"status" binding:"required,min=1,max=2"` // 1-通过 2-拒绝
	Reason  string `json:"reason" form:"reason"`                                // 拒绝原因
}

type GetWithdrawalListReq struct {
	Page     int `json:"page" form:"page"`
	PageSize int `json:"page_size" form:"page_size"`
}

type GetWithdrawalDetailReq struct {
	ID uint64 `json:"id" form:"id" binding:"required"`
}

